package chapter8;

import java.util.HashMap;

public class HashTest {
	public HashMap table = new HashMap();

	public void hashAdd(Object key, int i) {

		table.put(key, i);
	}

	public Object getKey(Object key) {

		Object object=table.get(key);
		return object;
	}

	public boolean hashMatch(String string) {
		table.equals(string);
		return true;
	}

	public static void main(String args[]) {
		HashTest test=new HashTest();
		test.hashAdd(null, 1);
		test.hashAdd("wan", 2);
		test.hashAdd("lin", 3);
		if(test.hashMatch("hu")){
			System.out.print(test.getKey(null));
	}

	}
}
